﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CarLoanSystem.Entity;

namespace CarLoanSystem
{
    public partial class frmMainBoss : Form
    {
        private static EmployeeItem empItem;

        public frmMainBoss(EmployeeItem item)
        {
            InitializeComponent();
            empItem = item;
            this.panelMain.Show();
            this.panelReportBoss.Hide();
        }

        public frmMainBoss()
        {
            InitializeComponent();
        }

        private void btnReport_Click(object sender, EventArgs e)
        {
            this.panelMain.Hide();
            this.panelReportBoss.InitBtn();
            this.panelReportBoss.InitPanelReport();
            this.panelReportBoss.Show();
        }

        private void btnMain_Click(object sender, EventArgs e)
        {
            this.panelMain.Show();
            this.panelReportBoss.Hide();
        }
    }
}
